C (78/254)

From:Bart King
Date:16 Apr 00 at 12:08:55
Subject:Re: implementing cut scenes

Steven Dobbs <steven.dobbs@cableinet.co.uk> wrote:

> I was wondering if anybody could tell me the easiest way to implement
> audio/video cut scenes.

Heh. Unfortunately on Amiga, this is neither easy or straight-forward.
Windows has it easy, since AVI video can be used within a few system calls.

> Perhaps sound could be played separate from video.

This is the preferred (and easiest) method, because Amiga just can't keep up
with the pace when it comes to segmented video and audio (expect the audio
buffer to empty before the video buffer, ending up in choppy sound).

However, if you were going to use two files (one animation, one audio) you
will have to code this yourself from scratch since there is no official
file format for doing this.

> does source code exist to play animations, preferably anim5 or maby mpeg,

First off, forget Anim5 - you might as well use uncompressed animation
frames. Secondly, Anim5 does not support any form of timing, so you'll
have problems synchronizing audio with animation.

MPEG - unless you're targeting towards high-end PPC systems, forget it.

On the subject of looking for source code to play video, you'll have a
tough time. Since the world went Windows, finding code to play the
simplest video footage is near impossible. Thanks to Video For Windows, it
became the standard for playing video, so no-one needed to code it
themselves any longer.

FMV code I have written is all custom, with a new file format and
optimized video displaying. It's all very well playing video, but the most
difficult bit in my opinion, is writing video files. Synchronization is
very important.

> or is the a way to force my programs execution to be temporariliy suspended
> as it executes another player program.

Well, DOS's Execute() doesn't return until the shell process it spawns has
returned itself.

Video is a pretty advanced subject, but good luck :)



Bart King
Developer
http://www.bartman.demon.co.uk (half done)
ICQ: 18178781 - IRC: bart (ArcNET)

------------------------------------------------------------------------
Avoid the lines and visit avis.com for quick and easy online
reservations. Enjoy a compact car nationwide for only $29 a day!
Click here for more details.
http://click.egroups.com/1/3011/1/_/451227/_/956079673/
------------------------------------------------------------------------